<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('sites', SiteController::class);
    $router->resource('column', ColumnController::class);
    $router->resource('area', AreaController::class);
    $router->resource('article', ArticleController::class);
    $router->resource('links', LinksController::class);
    $router->resource('pages', PagesController::class);
    $router->resource('gotos', GotosController::class);
    $router->resource('user', UserController::class);
    $router->resource('crontabs', CrontabController::class);
    $router->resource('crontabLogs', CrontabLogController::class);
    $router->post('crontabs/checkSchedule', CrontabController::class .'@checkSchedule');
    

});
